include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc)

set(name "CameraControlSystemDemo")

file(GLOB ${name}_ALL_DOTH_FILES ${CMAKE_CURRENT_SOURCE_DIR}/inc/*.h)
file(GLOB ${name}_ALL_DOTCPP_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)

message(STATUS "${name}_ALL_DOTH_FILES: ${${name}_ALL_DOTH_FILES}")
message(STATUS "${name}_ALL_DOTCPP_FILES: ${${name}_ALL_DOTCPP_FILES}")

add_executable(${name} 
    WIN32 
    ${${name}_ALL_DOTH_FILES}
    ${${name}_ALL_DOTCPP_FILES}
    )
    
target_link_libraries(${name}
    debug OgreMain_d optimized OgreMain
    debug OIS_d optimized OIS
    debug CameraControlSystem_d optimized CameraControlSystem
)